import service from '@/server/index.js'

// 条件分页查询日志
export const getLogList = (params = {}) => {
  return service({
    url: '/log/page',
    method: 'GET',
    params: params,
    setting: {
      isToken: true
    }
  })
}

// 删除日志
export const deleteLog = (id) => {
  return service({
    url: `/log/${id}`,
    method: 'DELETE',
    setting: {
      isToken: true
    }
  })
}

// 清空日志
export const cleanLog = () => {
  return service({
    url: '/log/clean',
    method: 'DELETE',
    setting: {
      isToken: true
    }
  })
}
